require 'apr.std.file'
require 'moonunit'

test_file = moonunit.TestCase:new()

function test_file:test_isfilelike()
    local tmpfile = io.tmpfile()
    assert(apr.std.file.isfilelike(tmpfile))
    assert(not apr.std.file.isfilelike("string"))
    assert(not apr.std.file.isfilelike({read = "read", write = "write"}))
end

function test_file:test_filestream()
    
end
